﻿using System.Web.Mvc;

namespace Journal.Common.Helpers.HtmlControls
{
    public static class ContentControls
    {
         public static MvcHtmlString Image(string imageSrc, string alt)
         {
             TagBuilder image = new TagBuilder("img");
             image.Attributes.Add("src", imageSrc);
             image.Attributes.Add("alt", alt);
             return new MvcHtmlString(image.ToString(TagRenderMode.Normal));
         }
    }
}